﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WarehouseManagement.Shared.Settings
{
    public class SettingsManager
    {
        public static DatabaseSettings ReadSettings(string filePath)
        {
            return BinSerializer.Deserialize<DatabaseSettings>(filePath);
        }

        public static void SaveSettings(DatabaseSettings settings, string filePath)
        {
            BinSerializer.Serialize(settings, filePath);
        }
    }
}
